package demo003;

public class FruitTest {
    public static void main(String[] args) {
        Fruit fruitc111 = new Apple();
        fruitc111.setName("苹果");
        fruitc111.setArea("云南昭通");
        fruitc111.setPrice(7.9);
        System.out.println(fruitc111);

        Fruit fruitc222 = new Banana();
        fruitc222.setName("香蕉");
        fruitc222.setArea("云南红河");
        fruitc222.setPrice(8.9);
        System.out.println(fruitc222);


        Fruit fruitc333=new mango();
        fruitc333.setName("芒果");
        fruitc333.setArea("云南德宏");
        fruitc333.setPrice(9.9);
        System.out.println(fruitc333);


    }
}
